export default ({ app }) => {
  app.router.afterEach((to, from, next) => {
    let pathName = ['goods_detail-id', 'goods_seckill_detail']
    if (pathName.includes(to.name)) {
      document.body.scrollTop = 0
      document.documentElement.scrollTop = 0
    }
  });
}
